// @ts-ignore
/* eslint-disable */
import request from '@/request';

/** addMovieEvaluation POST /api/movieEvaluation/add */
export async function addMovieEvaluationUsingPost(
  body: API.MovieEvaluationAddRequest,
  options?: { [key: string]: any },
) {
  return request<API.BaseResponseLong_>('/api/movieEvaluation/add', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}

/** deleteMovieEvaluation POST /api/movieEvaluation/delete */
export async function deleteMovieEvaluationUsingPost(
  body: API.DeleteRequest,
  options?: { [key: string]: any },
) {
  return request<API.BaseResponseBoolean_>('/api/movieEvaluation/delete', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}

/** editMovieEvaluation POST /api/movieEvaluation/edit */
export async function editMovieEvaluationUsingPost(
  body: API.MovieEvaluationEditRequest,
  options?: { [key: string]: any },
) {
  return request<API.BaseResponseBoolean_>('/api/movieEvaluation/edit', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}

/** getMovieEvaluationVOById GET /api/movieEvaluation/get/vo */
export async function getMovieEvaluationVoByIdUsingGet(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.getMovieEvaluationVOByIdUsingGETParams,
  options?: { [key: string]: any },
) {
  return request<API.BaseResponseMovieEvaluationVO_>('/api/movieEvaluation/get/vo', {
    method: 'GET',
    params: {
      ...params,
    },
    ...(options || {}),
  });
}

/** listMovieEvaluationByPage POST /api/movieEvaluation/list/page */
export async function listMovieEvaluationByPageUsingPost(
  body: API.MovieEvaluationQueryRequest,
  options?: { [key: string]: any },
) {
  return request<API.BaseResponsePageMovieEvaluation_>('/api/movieEvaluation/list/page', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}

/** listMovieEvaluationVOByPage POST /api/movieEvaluation/list/page/vo */
export async function listMovieEvaluationVoByPageUsingPost(
  body: API.MovieEvaluationQueryRequest,
  options?: { [key: string]: any },
) {
  return request<API.BaseResponsePageMovieEvaluationVO_>('/api/movieEvaluation/list/page/vo', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}

/** listMyMovieEvaluationVOByPage POST /api/movieEvaluation/my/list/page/vo */
export async function listMyMovieEvaluationVoByPageUsingPost(
  body: API.MovieEvaluationQueryRequest,
  options?: { [key: string]: any },
) {
  return request<API.BaseResponsePageMovieEvaluationVO_>('/api/movieEvaluation/my/list/page/vo', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}

/** updateMovieEvaluation POST /api/movieEvaluation/update */
export async function updateMovieEvaluationUsingPost(
  body: API.MovieEvaluationUpdateRequest,
  options?: { [key: string]: any },
) {
  return request<API.BaseResponseBoolean_>('/api/movieEvaluation/update', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}
